<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>根据课件查看注册信息列表</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/public.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/main.css"
	rel="stylesheet" type="text/css" media="screen" />
<link
	href="#{facesContext.externalContext.requestContextPath}/css/work.css"
	rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<h:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display: ">
	<a4j:outputPanel id="msgPanel">
		<center><h:outputText styleClass="cff"
			value="#{TrainBB.msg}" /></center>
	</a4j:outputPanel></div>
	<div class="tablelist">
			<table width="100%" border="1" cellpadding="0" cellspacing="0"
				bordercolor="#c3c3c3" style="border-collapse: collapse">
				<tr>
					<td>课件名称
						<h:selectOneMenu
							class="style_input" value="#{TrainBB.sign.tp_coursewareid}">
							<f:selectItem />
							<f:selectItems value="#{TrainBB.selectItems_coursewares}" />
						</h:selectOneMenu>
						<h:inputHidden value="#{TrainBB.trainplan.tp_trainplanid}" />
					</td>
					<td><h:commandButton  styleClass="buttonbg2" value="查询"
						action="#{TrainBB.querySignsToCourseware}" reRender="signtable,msgPanel,cutpage" /></td>
				</tr>
			</table>
		</div>
	<div class="tablelist2"><rich:dataTable rowClasses=",yellow"
		width="100%" id="signtable" value="#{TrainBB.signs}"
		var="table">
		<a4j:keepAlive beanName="TrainBB" />
		<f:facet name="header">
			<rich:columnGroup>
				<rich:column>
					<h:outputText value="参训人" />
				</rich:column>
				<rich:column>
					<h:outputText value="课件名" />
				</rich:column>
				<rich:column>
					<h:outputText value="注册时间" />
				</rich:column>
				<rich:column>
					<h:outputText value="状态" />
				</rich:column>
			</rich:columnGroup>
		</f:facet>
		<rich:columnGroup>
			<rich:column>
				<h:outputText value="#{table.tp_account}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_cwtitle}" />
			</rich:column>
			<rich:column>
				<h:outputText value="#{table.tp_signintime}" >
					<f:convertDateTime pattern="yyyy-MM-dd" />
				</h:outputText>
			</rich:column>
			<rich:column>
				<h:outputText style="color:#{(table.tp_signstates=='1')?'blue':'red'}" value="#{(table.tp_signstates=='1')?'已注册':'未注册'}" />
			</rich:column>
		</rich:columnGroup>
	</rich:dataTable></div>
	<div class="listbut"><h:commandButton
		styleClass="buttonbg" value="返回"
		action="#{TrainBB.toBack}" />
		<h:commandButton
		styleClass="buttonbg2" value="发出通知"
		action="#{TrainBB.toSignNoticeAdd}" reRender="msgPanel" />
		</div>
	</div>
</h:form>
</body>
</html>

